From b67a7e630568f8c224fb98812c529bfc59187889 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sun, 30 Oct 2005 16:43:52 +0100 Subject: [PATCH] Force the devid given to destroyDevice to an integer. This means that that method copes with the values given to xm network-detach without netif.py having to intervene. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/server/DevController.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/server/DevController.py b/tools/python/xen/xend/server/DevController.py index 0060a687fd..8cbab6f9c2 100644 --- a/tools/python/xen/xend/server/DevController.py +++ b/tools/python/xen/xend/server/DevController.py @@ -74,6 +74,8 @@ class DevController: other tasks on destruction. """ + devid = int(devid) + frontpath = self.frontendPath(devid) backpath = xstransact.Read(frontpath, "backend") -- 2.30.2